import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/blade-platform/data/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}
export const getEnvChart = (params) => {
  return request({
    url: '/api/blade-platform/data/environmentChart',
    method: 'get',
    params
  })
}
/*数据导出*/
export const exportData = (params) => {
  return request({
    url: '/api/blade-platform/data/export',
    responseType: 'blob',
    method: 'get',
    headers: {
      'Content-Type': 'application/json'
    },
    params
  })
}
